﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_perDepart.aspx.cs" Inherits="Web.admin_perDepart" %>
<%@ Register Assembly="Control" Namespace="Com.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>领取物品列表</title>
      <link href="css/Page.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="border: 1px solid #9abddd;" border="0" cellpadding="0"
            cellspacing="0" width="98%">
            <tr>
                <td class="TitleBar" colspan="5" align="center">
                   领取物品列表
                </td>
            </tr>
            <tr>
             <td class="Pager" colspan="4" style="padding-left: 20px; text-align:left; ">
              部门：
                 <asp:DropDownList ID="ddldepart" runat="server"  AutoPostBack="true"
                     onselectedindexchanged="ddldepart_SelectedIndexChanged">
                 </asp:DropDownList>
              
                 <asp:DropDownList ID="ddlemploy" runat="server"  >
                 </asp:DropDownList>
                 
                         &nbsp;&nbsp;
               开始时间：&nbsp;&nbsp;<asp:TextBox ID="BeginDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"  TabIndex="10" Width="85px"></asp:TextBox>
               &nbsp;&nbsp;
                    结束时间：&nbsp;&nbsp;<asp:TextBox ID="EndDataTime" runat="server" onclick="new WdatePicker({dateFmt:'yyyy-MM-dd'});"  TabIndex="11" Width="85px"></asp:TextBox>
                  
              
                 <asp:Button ID="btn_search" runat="server" Text="查询" 
                     onclick="btn_search_Click" />
              
                </td>
                <td class="Pager"  style="padding-right: 20px; text-align:right; ">
               <asp:Button ID="btn_add" runat="server" Text="领取物品" onclick="btn_add_Click" />
                </td>
                 
            </tr>
            <tr><td class="Pager"  colspan="5" style="padding-right: 20px; text-align:right; ">
            
                <asp:Button ID="btn_out" runat="server" Text="导出Excel" 
                    onclick="btn_out_Click" />
            
            </td></tr>
            <tr>
                <td class="MenuItem" align="center">
                   名称
                </td>
                  <td class="MenuItem" align="center">
                   领取数量
                </td>
                 <td class="MenuItem" align="center">
                   领取时间
                </td>
                
                  <td class="MenuItem" align="center">
                    领取人
                </td>
                <td class="MenuItemRight" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="repeater" runat="server" onitemcommand="repeater_ItemCommand" >
                <ItemTemplate>
                    <tr style='background-color:<%#(Container.ItemIndex%2==0)?"write":"#f5f5f5;"%>'>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("TName")%></b></span>
                        </td>
                        <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("Tools_Nums")%></b></span>
                        </td>
                          <td class="RecordItem" style="text-align:center;  ">
                            &nbsp;<span style="color:#000;"><%#Eval("I_dateTime")%></b></span>
                        </td>
                       
                          <td class="RecordItem" style="text-align: center;  ">
                            &nbsp;<%#Eval("pname")%>
                        </td>
                        <td class="RecordItemRight" align="center" >
                       <a class="Link" href="admin_perDepartEdit.aspx?id=<%#Eval("Id")%>">修改</a> 
                      <!--  <asp:LinkButton runat="server"  ID="lkb"  CommandArgument='<%#Eval("id")%>' CommandName="del" Text="删除" OnClientClick= "return   confirm( '您确认删除该记录吗? '); " style=" font-size:12px;" ></asp:LinkButton>-->
                          
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td class="Pager" colspan="5" style="padding-right: 10px; text-align:center;">
                    <cc1:MyPageBar ID="MyPageBar1" runat="server" />
                </td>
            </tr>
        </table>
    </div>
   
    </form>
</body>
</html>
